public class Operator {
    static void operator() {
        int a = 10;
        a = (int)(a + 0.5);
        System.out.println(a);

        System.out.println("------------生命1------------");

        int b = 20;
        boolean c = 4 < 3 && ++b == 21;
        System.out.println(b);
        boolean d = 4 < 3 & ++b == 21;
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);

        System.out.println("------------生命2------------");

        int e = -15;//10000000 00000000 00000000 00001111
        e <<= 1;
        System.out.println(e);
        int f = e >> 1;
        System.out.println(f);
        e >>>= 1;
        System.out.println(e);

        System.out.println("------------生命3------------");
    }
}
